package com.group9.handinhand.service.so;

import com.group9.handinhand.dao.model.RequestTag;
/**
 * class for service of request tag
 *
 */
public class RequestTagSO extends AbstractBaseSO {
	
    private TagSO tag;
	private RequestSO request;
	/**
	 * converts request tag model object
	 * @return
	 */
	public RequestTag convertToModelObject() {
		RequestTag model = (RequestTag) convert(new RequestTag());
		model.setRequest(this.request.convertToModelObject());
		model.setTag(this.tag.convertToModelObject());
		return model;
	}

	public TagSO getTag() {
		return tag;
	}

	public void setTag(TagSO tag) {
		this.tag = tag;
	}

	public RequestSO getRequest() {
		return request;
	}

	public void setRequest(RequestSO request) {
		this.request = request;
	}

	@Override
	public String toString() {
		return "EventTagSO [tag=" + tag + ", request=" + request + "]";
	}
	
	
}
